package com.jeeplus.modules.web.service;

import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.web.entity.YjMahjongHallWaiters;
import com.jeeplus.modules.web.entity.YjRoomCallsWaiters;
import com.jeeplus.modules.web.mapper.YjRoomCallsWaitersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author liangbing
 * @version 1.0
 * @date 2021/5/20 22:55
 * @description 幺久呼叫-服务生关联关系service
 */
@Service
@Transactional(readOnly = true)
public class YjRoomCallsWaitersService extends CrudService<YjRoomCallsWaitersMapper, YjRoomCallsWaiters> {

    @Autowired
    private YjRoomCallsWaitersMapper yjRoomCallsWaitersMapper;

    @Transactional(readOnly = false)
    public void batchCreate(String roomCallsId, List<YjMahjongHallWaiters> waitersList) {
        yjRoomCallsWaitersMapper.batchCreate(roomCallsId, waitersList);
    }

}
